<!-- inc:head -->
<div id="body">
	<div id="left">
		<div id="user_cp"><div class="loading"></div></div>
		<div class="space"></div>
		<div class="block-title">{:$m_rs[title]} - 搜索</div>
		<div class="block-msg">
			<table>
			<form method="post" action="{:site_url('post,list')}module_id={:$module_id}">
			<!-- if($ifcate) -->
			<tr>
				<td align="right">分类：</td>
				<td>{:$cate_html}</td>
			</tr>
			<!-- end -->
			<tr>
				<td align="right">关键字：</td>
				<td><input type="text" name="keywords" id="keywords" value="{:$keywords}"></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" class="button" value="查询"></td>
			</tr>
			</form>
			</table>
		</div>

	</div>
	<div id="right">
		<div class="block-title">{:$m_rs[title]} &nbsp; ( <a href="{:site_url('post,set')}module_id={:$m_rs[id]}">添加</a> )</div>
		<div class="block-msg">
			<table width="100%" style="layout:fixed;" cellpadding="0" cellspacing="0">
			<tr>
				<td class="t_sub" width="50px">ID</td>
				<td class="t_sub" width="35px">状态</td>
				<!-- if($m_rs[if_thumb] && $m_rs[if_thumb_m]) -->
				<td class="t_sub" width="84px">缩略图</td>
				<!-- end -->
				<!-- if($ifcate) -->
				<td class="t_sub" width="130px">分类</td>
				<!-- end -->
				<td class="t_sub">名称</td>
				<!-- if($m_rs[if_biz]) -->
				<td class="t_sub" width="100px">售价（RMB）</td>
				<!-- end -->
				<td class="t_sub" width="110px">发布时间</td>
				<td class="t_sub" width="80px">操作</td>
			</tr>
			<!-- $rslist AS $key=>$value -->
			<tr class="tr_out" onMouseOver="over_tr(this)" onMouseOut="out_tr(this)">
				<td align='center' class="tc_left">{:$value[id]}</td>
				<td align="center" class="tc_right"><img src="images/status{:intval($value['status'])}.gif"></td>
				<!-- if($m_rs[if_thumb] && $m_rs[if_thumb_m]) -->
				<td align='center' class="tc_right"><img src="{:$value[thumb] ? $value[thumb] : 'images/nopic.gif'}" border="0" width="80px" style="padding:1px;" height="80px" /></td>
				<!-- end -->
				<!-- if($ifcate) -->
				<td class="tc_right" align='center'>{:$value[cate_name] ? $value[cate_name] : '-'}</td>
				<!-- end -->
				<td align='left' class="tc_right" style="{:$value[style]};padding:2px 0;">&nbsp;{:$value[title]}<!-- if($value[virtual]) --> <span class="red">虚拟产品</span><!-- end --></td>
				<!-- if($m_rs[if_biz]) -->
				<td align='center' class="tc_right">{:$value[free] ? '免费' : $value[price]} <!-- if($value[ifspecial] && !$value[free]) --><span style="color:red;">特价</span><!-- end --></td>
				<!-- end -->
				<td  align='center' class="tc_right">{:date('Y-m-d H:i',$value[post_date])}</td>
				<td align="center" class="tc_right">
					<a href="{:site_url('post,set')}id={:$value[id]}&module_id={:$module_id}"><img src="images/page_edit.gif" alt="编辑"></a>
					<a href="javascript:del({:$value['id']});void(0);"><img src="images/page_delete.gif" alt="删除"></a>
				</td>
			</tr>
			<!-- end -->
			</table>
		</div>
		<!-- if($pagelist) --><div align="right">{:$pagelist}</div><!-- end -->
	</div>
	<div class="space clear"></div>
</div>
<script type="text/javascript">
func_php("usercp",js_usercp,"user_cp");
function del(id)
{
	if(!id)
	{
		alert("操作非法");
		return false;
	}
	var q = confirm("确定要删除此信息吗？删除后是不能恢复的");
	if(q != 0)
	{
		var url = "{:site_url('post,del')}module_id={:$module_id}&id="+id;
		var msg = get_ajax(url);
		if(!msg) msg = "error: 操作非法";
		if(msg == "ok")
		{
			window.location.href = "{:$del_refresh_url}";
		}
		else
		{
			alert(msg);
			return false;
		}
	}
}
</script>
<!-- inc:foot -->